/*
 * @Author: lg
 * @Date: 2024-05-21 09:06:16
 * @LastEditors: lg
 * @LastEditTime: 2024-05-23 09:58:22
 * @Description: 
 * @FilePath: \bi-main\src\views\design-center\api\screen.js
 */
// 大屏详情和修改接口
import ajax from '@/ajax/index';
const baseUrl = '/api';
// const baseUrl = '';

//获取大屏配置的详情数据
export const getScreenAndReportDetailApi = (params) =>
  ajax.get(`${baseUrl}/bi-screen/findOne`, {
    params: {
      ...params
    }
  });

//编辑/保存大屏api
export const saveScreenApi = (data) =>
  ajax.post(`${baseUrl}/bi-screen/editOne`, data);

//根据数据集id获取大屏组件的数据
export const getComponentShowListApi = (params) =>
  ajax.get(`${baseUrl}/reportDataset/queryData`, {
    params
  });

// //根据数据集id和下钻字段获取大屏组件的数据
// export const getComponentDrillDownListApi = (params) =>
//   ajax.get(`${baseUrl}/reportDataset/queryData`, {
//     params
//   });
